require "import"
import "android.content.Context"
import "android.os.Vibrator"
import "android.media.ToneGenerator"
import "android.media.AudioManager"
local context = activity or service
local vibrator = context.getSystemService(Context.VIBRATOR_SERVICE)
local toneGenerator = ToneGenerator(AudioManager.STREAM_NOTIFICATION, 50)
toneGenerator.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200)
toneGenerator.startTone(ToneGenerator.TONE_CDMA_EMERGENCY_RINGBACK, 75)
vibrator.vibrate(100)
local fz=service.getLastSpeakText()
 service.copy(fz) 
service.speak(""..
fz) return true